import 'dart:io';

import 'package:adb_tool/common/api_constant.dart';

/// 数据获取帮助类
class DataHelper {
  /// 获取adb 下载路径
  static String getAdbDownLoadUrl() {
    if (Platform.isMacOS) {
      return ApiConstant.macOsAdbToolDownloadUrl;
    } else if (Platform.isWindows) {
      return ApiConstant.windowsAdbToolDownloadUrl;
    } else {
      return ApiConstant.linuxAdbToolDownloadUrl;
    }
  }
}
